/*
 * Copyright (c) 2023, 2024,yzc.cn All rights reserved.
 *
 */
package com.by.common.utils;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

/**
 * <p>Project: erp-cloud-api - AutoData</p>
 * <p>Powered by yzc On 2024-01-11 10:10:29</p>
 * <p>描述：<p>
 *
 * @author yzc [yzc0415@126.com]
 * @version 1.0
 * @since 17
 */

public class AutoData {
    public  static  String getNowData(){
        LocalDate date = LocalDate.now();  // 获取当前日期
        //格式化日期
        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMM");
        String formattedDate = date.format(formatter);
        return formattedDate;
    }
}
